#include "ztcpdata.h"

ZTcpData::ZTcpData(QObject *parent) : QObject(parent)
{

}

ZTcpData::~ZTcpData()
{

}

ZTcpData::ZTcpData(const ZTcpData &data): QObject()
{
    m_Ip =data.m_Ip;
    m_Port =data.m_Port;
    m_Name =data.m_Name;
    m_Time =data.m_Time;
    m_Content =data.m_Content;
}

void ZTcpData::operator =(const ZTcpData &data)
{
    m_Ip =data.m_Ip;
    m_Port =data.m_Port;
    m_Name =data.m_Name;
    m_Time =data.m_Time;
    m_Content =data.m_Content;
}

const QString &ZTcpData::Ip() const
{
    return m_Ip;
}

void ZTcpData::setIp(const QString &newIp)
{
    m_Ip = newIp;
}

int ZTcpData::Port() const
{
    return m_Port;
}

void ZTcpData::setPort(int newPort)
{
    m_Port = newPort;
}

const QString &ZTcpData::Name() const
{
    return m_Name;
}

void ZTcpData::setName(const QString &newName)
{
    m_Name = newName;
}

const QDateTime &ZTcpData::Time() const
{
    return m_Time;
}

void ZTcpData::setTime(const QDateTime &newTime)
{
    m_Time = newTime;
}

const QString &ZTcpData::Content() const
{
    return m_Content;
}

void ZTcpData::setContent(const QString &newContent)
{
    m_Content = newContent;
}




